class Classes{
    school:string
    name:string
    people:number

    constructor(name:string){
        this.name=name
    }
    action(params):string {
        return `${this.name}在${params}`
    }
}
let c = new Classes('计算机2201')
console.log(c.action("唱歌"));

class Students extends Classes {
    name:string
    
    constructor(name: string){
        super(name)
    }

    work(params): string {
        return `${this.name}在${params}`
    }
}
let s = new Students("小李")
console.log(s.work("考试"))
